home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / GCC 1.37.1r14 / usr / gcc-1.37.1r14 / object oriented files / CBrowseResDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-03  |  1.3 KB  |  52 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CBrowseResDoc.h
  3.  
  4.         
  5.     SUPERCLASS = CDocument
  6.     
  7.     Copyright © 1991 Symantec Corporation. All rights reserved.
  8.                 
  9.     TCL 1.1.3 Changes
  10.     [
  11.         - use #pragma once
  12.         - changed forward declarations to use CLASS
  13.     ]
  14.  ******************************************************************************/
  15.  
  16. #pragma once
  17.  
  18. #include "CDocument.h"
  19.  
  20. CLASS CResTypePane;
  21. CLASS CResBrowser;
  22. CLASS CArray;
  23.  
  24. class CBrowseResDoc : public CDocument
  25. {
  26.  
  27. public:
  28.  
  29.     void                IBrowseResDoc( CApplication *aSupervisor, Boolean printable);
  30.     virtual void        NewFile(void);
  31.     virtual void        OpenFile( SFReply *macSFReply);
  32.     
  33.     virtual void        DoCommand( long aCommand);
  34.     
  35.     virtual void         RemoveDirector( CDirector *aDirector);
  36.     virtual void         AddType( Handle theHandle, ResType newtype, Str255 newname);
  37.     virtual Boolean     DoSave( void);
  38.     virtual void        Dispose( void);
  39.  
  40. protected:
  41.  
  42.     CArray            *itsResTypes;    //    a list of all resource types in the document
  43.     CResTypePane     *itsTypePane;    //    the view displaying the resource types
  44.  
  45.     virtual Boolean        CanOpenType( ResType aResType);
  46.     virtual void        BuildMainWindow( void);
  47.     virtual void        BuildTypeList( void);
  48.     
  49.     virtual void        OpenTypeWindow( void);
  50.     virtual CResBrowser    *MakeTypeBrowser( ResType aType);
  51.     virtual CArray        *BuildResourceList( ResType aType);
  52. };